set(CXX_SOURCES bihua.cpp InputState.cpp Input.cpp InputWord.cpp Utils.cpp Table.cpp)

set(C_SOURCE )
fcitx_add_addon_full(bh
        SOURCES ${CXX_SOURCES} ${C_SOURCE}
        IM_CONFIG bh.conf LINK_LIBS jsoncpp)
install(FILES ../data/bihua_thesaurus.json ../data/bihua_core.json DESTINATION ${DATADIR})